<script setup>
import Parent from './components/Parent.vue'
import Card from './components/Card.vue'
import {useUserStore} from './stores/user'
const store = useUserStore()

let {token,loginStatus} = store.userStore

</script>



<template>
  money:<p>{{ store.money }}</p>
  loginStatue:<p>{{ loginStatus  }}</p>
  toke:<p>{{ token }}</p>

  <button @click="store.addMoney">Add money</button>

  <router-link to="http://www.baidu.com">百度一下</router-link>
  <router-view/>
  <!-- <Parent :info="hello" :money="10000"/> -->
  <Card/>
</template>

<style scoped>
header {
  line-height: 1.5;
}

.logo {
  display: block;
  margin: 0 auto 2rem;
}

@media (min-width: 1024px) {
  header {
    display: flex;
    place-items: center;
    padding-right: calc(var(--section-gap) / 2);
  }

  .logo {
    margin: 0 2rem 0 0;
  }

  header .wrapper {
    display: flex;
    place-items: flex-start;
    flex-wrap: wrap;
  }
}
</style>
